home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5574 / text0000.txt < prev   
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  23 lines

  1.  
  2. In article <828.6649T501T491@login.eunet.no> patrick.hanevold@login.eunet.no (Patrick Hanevold) writes:
  3.  > 
  4.  > >Stack EXTENSION, on the other hand, allows for a "fudge factor".  If the
  5.  > >remaining stack size at function entry time is less than the global long
  6.  > >_STKNEED, a new stack extent is allocated.  The default _STKNEED value
  7.  > >is 400 bytes.
  8.  >     ^^^ This one is too little! It should be 4K by default. Like the OS.
  9.  >
  10.         Ah... But that only specifies how much must be available FOR THE
  11. CURRENT FUNCTION -- it does not specify the total size of the stack.  If you
  12. were running with the default 4K stack, the second nested function invocation
  13. would rule that a stack extent needs to be allocated since the first function
  14. used some of the 4K...
  15.  
  16. -- 
  17.  > ============================================================ <
  18.  >   wulfraed@netcom.com  | Wulfraed  Dennis Lee Bieber  KD6MOG <
  19.  >   D.Bieber@GEnie.com   |      FurryMUCK and FurToonia        <
  20.  > ============================================================ <
  21.  >          PGP key: Finger wulfraed@netcom.com                 <
  22.  > Home Page: ftp://ftp.netcom.com/pub/wu/wulfraed/wulfraed.htm <
  23.